// @author Tjzlo
// @version 2025/2/24 23:28

package com.old.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PostListVO {
    private Integer postId;//前端接收帖子id
    private String imageUrl;//帖子图片

    private String name;//作者名字
    private String avatar;//作者头像

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;//创建时间

    private String title;//帖子标题

    private int like;//点赞数

}
